#pragma once
#include <windows.h>

class CMenuAnimation
{
	int		m_nImageID;
	float	m_fFrameLength;  //In TIME
	short	m_sFrameWidth;
	short	m_sFrameHeight;
	short	m_sFrameCount;
	RECT	m_drawRect;
public:
	CMenuAnimation();
	~CMenuAnimation();
	//////////////////////////////////////////////////////////
	//	Accessors/Mutators
	float FrameLength() const { return m_fFrameLength; }
	short FrameCount() const { return m_sFrameCount; }
	//
	//////////////////////////////////////////////////////////
	void Init(char* szImageFile, float fFrameLegth, short sFrameWidth, short sFrameHeight, short sFrameCount);
	void Render(int nPosX, int nPosY, short sCurrentFrame);
	void Shutdown();
};